#ifndef FORM_H
#define FORM_H

#include <QWidget>
//#include "form2.h"
#include <QSqlDatabase>//数据库
#include <QSqlQuery>
#include <QCameraInfo>//摄像头设备信息类
#include <QCamera>//摄像头管理类
#include <QCameraImageCapture>
#include <QCameraViewfinder>
#include <QCameraImageCapture>
#include <QImage>
#include <QTime>
#include <QThread>
#include <QTextToSpeech>//语音类
#include <QUdpSocket>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QJsonParseError>


namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = nullptr);
    ~Form();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void show_pic(int id, const QImage &pre);

    void on_pushButton_9_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::Form *ui;
    QCamera *ca;//摄像头对象
    QCameraImageCapture *cap;//截屏对象
    QString Cname;//存放摄像头名字
    QTextToSpeech *tts;
    QUdpSocket msocket;//创建UDP通信对象
};

#endif // FORM_H
